import request from "@/plugins/request";
let pre = "/api/ra/house-flc/app";

// 查询楼宇
export function queryBuilding (data) {
    return request({
        url: `${pre}/loucxx/queryLouyxx`,
        method: "post",
        data
    });
}
// 查询楼层
export function queryFloors (data) {
    return request({
        url: `${pre}/loucxx/queryLoucByLyid`,
        method: "post",
        data
    });
}
// 查询房间
export function queryRoom (data) {
    return request({
        url: `${pre}/fangjxx/queryFangjByLoucId`,
        method:  "post",
        data
    });
}
// 查询关联信息
export function queryAssociated (params) {
    return request({
        url: `${pre}/fangjxx/getFjByStaffId`,
        method: "get",
        params
    });
}
// 关联所属房间
export function associatedRoom (data) {
    return request({
        url: `${pre}/fangjxx/setUpFangj`,
        method: "post",
        data
    });
}
// 人员取消关联房间
export function cancelAssoRoom (params) {
    return request({
        url: `${pre}/fangjxx/deleteStaffFj`,
        method: "get",
        params
    });
}